import Vue from 'vue'
import Vuex from 'vuex'

import table2 from "@/store/module/table2";
import pwd from "@/store/module/pwd";
import dic from "@/store/module/dic";
import createPersistedState from 'vuex-persistedstate';

Vue.use(Vuex);

export default new Vuex.Store({
    modules: {
        table2,
        pwd,
        dic,
    },
    plugins: [createPersistedState({
        key: 'tlt.store',
        paths: ['table2.colIndexes', 'table2.data', 'table2.styles', 'pwd.password', 'table2.cascadeData'],
    })],
})
